 
export const setStateFn = (code) => {
	if (code === 404) {
		uni.showToast({
			title: "404，路径找不到：" + res.data.path,
			icon: "none"
		})
	} else if (code === 503) {
		uni.showToast({
			title: "服务不可用",
			icon: "none"
		})
	} else if (code === 504) {
		uni.showToast({
			title: "网络连接错误",
			icon: "none"
		})
	} else {
		uni.showToast({
			title: res.data,
			icon: "none"
		})
	}
}
